package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Finalheadresultinfo;
import com.grad.why.studentsystem.domain.FinalheadresultinfoExample;
import com.grad.why.studentsystem.domain.current.CurrentHeadInfos;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FinalheadresultinfoMapper {
    int countByExample(FinalheadresultinfoExample example);

    int deleteByExample(FinalheadresultinfoExample example);

    int deleteByPrimaryKey(Long headfinalresultid);

    int insert(Finalheadresultinfo record);

    int insertSelective(Finalheadresultinfo record);

    List<Finalheadresultinfo> selectByExample(FinalheadresultinfoExample example);

    Finalheadresultinfo selectByPrimaryKey(Long headfinalresultid);

    int updateByExampleSelective(@Param("record") Finalheadresultinfo record, @Param("example") FinalheadresultinfoExample example);

    int updateByExample(@Param("record") Finalheadresultinfo record, @Param("example") FinalheadresultinfoExample example);

    int updateByPrimaryKeySelective(Finalheadresultinfo record);

    int updateByPrimaryKey(Finalheadresultinfo record);

    List<CurrentHeadInfos> getHistoryHeadInfos(@Param("offset") int offset,@Param("limit") int limit,@Param("search") String search);

    long getHistoryHeadInfosLength(@Param("search") String search);
}